package com.nacos.shangtu.service;

import com.nacos.shangtu.entity.dto.ConversationDto;
import com.nacos.shangtu.entity.dto.MessageDto;
import com.nacos.shangtu.entity.po.MessagePO;
import org.springframework.lang.Nullable;

import java.util.List;

public interface MessageService {

    List<MessageDto> getMessageList(String groupId);

    void save(MessagePO chatMessage);

    List<ConversationDto> getConversions(String fromUserId);

    List<MessageDto> findNotSendMessages(String userId, @Nullable boolean update);
}
